ExamPlay Light Logo
Нэвтрэх

Computer Science for IGCSE & O level - Programming (Section 16 - No. 11)

In the Totaling example, what is the effect of `TotalWeight = TotalWeight + Weight;`?
Subtracts 'Weight' from 'TotalWeight'.
Assigns 'Weight' to 'TotalWeight'.
Adds 'Weight' to 'TotalWeight' and stores the result in 'TotalWeight'.
Multiplies 'Weight' and 'TotalWeight'.

Тайлбар

This adds the current weight value to the ongoing sum.

Смхиман (0)

Сэтгэгдэл бичихийн тулд нэвтэрнэ үү
Сурталчилгаа
BrainBehindX Inc Logo
©2026; Powered by BrainBehindX Inc